package com.byx.chatclient.bean;

import android.graphics.BitmapFactory;

import com.byx.chatclient.entity.Friend;

/**
 * SearchFriendBean
 * 用于搜索好友显示的对象
 * @author Superb
 * @date 2021/4/27 14:02
 */
public class SearchFriendBean extends SimpleUserBean {
    /**
     * 来自哪个分组
     */
    private String fromFriendGroupId;
    private String fromFriendGroupName;
    /**
     * 备注名
     */
    private String remark;

    public String getFromFriendGroupId() {
        return fromFriendGroupId;
    }

    public void setFromFriendGroupId(String fromFriendGroupId) {
        this.fromFriendGroupId = fromFriendGroupId;
    }

    public String getFromFriendGroupName() {
        return fromFriendGroupName;
    }

    public void setFromFriendGroupName(String fromFriendGroupName) {
        this.fromFriendGroupName = fromFriendGroupName;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public static SearchFriendBean fromFriend(Friend friend){
        SearchFriendBean friendBean = new SearchFriendBean();
        friendBean.setAvatar(null);
        friendBean.setLoginId(friend.getFriendLoginId());
        friendBean.setNickName(friend.getFriendNickName());
        friendBean.setFromFriendGroupId(friend.getGroupName());
        friendBean.setFromFriendGroupName(friend.getGroupName());
        friendBean.setRemark(friend.getFriendRemarkName());
        return friendBean;
    }
}
